from selenium.webdriver.common.by import By

search_box_loc = (By.ID, "searchKey")
search_btn_loc = (By.ID, "btnSearch")
bookshelf_btn_loc = (By.CLASS_NAME, "sj_link")
login_btn_loc = (By.CSS_SELECTOR, '.mr15')
register_btn_loc = (By.CSS_SELECTOR, '.mr15~a')
hot_articles_loc = (By.CSS_SELECTOR, ".hot_articles a")  # 所有热门文章
book_info_loc = ("css selector", 'p[class="intro"]>a')  # 所有热门推荐和精品推荐部分展示的书籍介绍
all_book_name_loc = (By.CSS_SELECTOR, '.name')  # 右侧本周强推，点击榜单，新书榜单，最新更新，更新榜单中所有书籍
chart_btn_loc = (By.XPATH, '//*[@id="navModule"]/li[3]/a')
recharge_btn_loc = (By.XPATH, '//*[@id="navModule"]/li[4]/a')
author_btn_loc = (By.XPATH, '//*[@id="navModule"]/li[5]/a')
